#include "loop/loop.h"
#include <cstdio>
#include <thread>

void loop::run()
{
    m_cnt = 0;
    while (m_cnt++ < 10)
    {
        printf("loop::run(%d)\n", m_cnt);
        std::this_thread::sleep_for(std::chrono::milliseconds(1000));
    }
}

void loop::quit()
{
    m_cnt = 10;
    printf("loop::quit(%d)\n", m_cnt);
}